#ifndef __UDF_CFG_H
#define __UDF_CFG_H

#include <stdint.h>

#define UDF_MAX_NUM (16)

#define ENABLE_UDF01 (0)
#define ENABLE_UDF02 (0)
#define ENABLE_UDF03 (0)
#define ENABLE_UDF04 (0)
#define ENABLE_UDF05 (1)
#define ENABLE_UDF06 (1)
#define ENABLE_UDF07 (0)
#define ENABLE_UDF08 (0)
#define ENABLE_UDF09 (0)
#define ENABLE_UDF10 (0)
#define ENABLE_UDF11 (1)
#define ENABLE_UDF12 (0)
#define ENABLE_UDF13 (1)
#define ENABLE_UDF14 (0)
#define ENABLE_UDF15 (0)
#define ENABLE_UDF16 (0)

#define UDF_EN (ENABLE_UDF01|ENABLE_UDF02<<1|ENABLE_UDF03<<2|ENABLE_UDF04<<3|ENABLE_UDF05<<4|ENABLE_UDF06<<5|ENABLE_UDF07<<6|ENABLE_UDF08<<7| \
								ENABLE_UDF09<<8|ENABLE_UDF10<<9|ENABLE_UDF11<<10|ENABLE_UDF12<<11|ENABLE_UDF13<<12|ENABLE_UDF14<<13|ENABLE_UDF15<<14|ENABLE_UDF16<<15 )

#define UDF16_DST_ADDR (IRQ_HANDLE_SRAM_START)
#define UDF15_DST_ADDR (BBE_SRAM_UDK_FREE_START)

// NOTE: 同 rom_def.h内 UDF_ADDR 保持一致
#define UDF_DST_ADDR   (0x20000800)

#define UDF_SRC_ADDR   (UDF_START_ADDR)
// NOTE: 同 rom_def.h 内 UDF_SIZE_MAX 保持一致
#define UDF_MAX_SIZE   (0x1800)
// NOTE: 同 rom_def.h 内 BBE_SRAM_UDK_FREE_END-BBE_SRAM_UDK_FREE_START 保持一致
#define UDF15_MAX_SIZE (0x4000)
// NOTE: 同 rom_def.h 内 IRQ_HANDLE_SRAM_END-IRQ_HANDLE_SRAM_START 保持一致
#define UDF16_MAX_SIZE (0x0180)

#endif

